package com.bristua.mall.goods.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.goods.biz.QueryGoodsEvaluteBiz;
import com.bristua.mall.goods.model.condition.queryGoodsEvalute.QueryGoodsEvalute;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by Administrator on 2019/3/26.
 */
@RestController
@Api(value="查询商品评价列表",tags={"查询商品评价列表"})
public class QueryGoodsEvaluateController {

    @Autowired
    private QueryGoodsEvaluteBiz queryGoodsEvaluteBiz;
    @ApiOperation(value="查询商品评价列表")
    @PostMapping(value="/app/query/goods/evaluate")
    public Result queryGoodsEvaluate(@RequestBody QueryGoodsEvalute queryGoodsEvalute){
        return HandleResultUtil.querySuccessResult(queryGoodsEvaluteBiz.queryGoodsEvalute(queryGoodsEvalute));
    }
}
